FROM anapsix/alpine-java:8_server-jre_unlimited

MAINTAINER xmtlxx

RUN mkdir -p /xmtlxx/server
RUN mkdir -p /xmtlxx/server/logs
RUN mkdir -p /xmtlxx/server/temp

WORKDIR /xmtlxx/server

EXPOSE 8080

ADD ./target/xmtlxx-admin.jar ./app.jar

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]
